
      var DataTranslate = {
        utf8:function(pValue){
          return this.url8str2data(pValue);
        },
        ios_utf8:function(pValue){
          return pValue.replace(/[^\u0000-\u00FF]/g,function($0){return escape($0).replace(/(%u)(\w{4})/gi,"\\U$2")});
        },
        url8str2data:function(pValue){
          return unescape(pValue.replace(/\U/g,'%u').replace(/\\/g,''));
          //return unescape(pValue.replace(/\\U/g,'%u').replace(/\\u/g,'%u'));
        }
      };

      function encodeURIAction(){
        var url = document.getElementById("blankFrame").contentWindow.document.body.innerHTML;
            //url.replace(/[^\u0000-\u00FF]/g,function($0){return escape($0).replace(/(%u)(\w{4})/gi,"\\U$2")});
            url = url.substring('<textarea style="width: 100%;height: 100%;">'.length,url.length-'<textarea style="width: 100%;height: 100%;"></textarea>'.length);
            url = decodeURI(url);
            url = UTFTranslate.ReChange(url);
            url = url.replace(/%3A/g,':');
            url = url.replace(/%2C/g,',');
            document.getElementById("blankFrame").contentWindow.document.body.innerHTML = '<textarea style="width: 100%;height: 100%;">'+url+'</textarea>';
          }
          
function getArgsFromHref(sHref, sArgName) 
{ 
    sHref = sHref+'';
    var args = sHref.split("?");
    var retval = "";
    if(args[0] == sHref) /*参数为空*/
    { 
        return retval; /*无需做任何处理*/ 
    }
    if (sArgName==null) {
        return args[1];
    }
    var str = args[1];
    args = str.split("&"); 
    for(var i = 0; i < args.length; i ++)
    { 
        str = args[i]; 
        var arg = str.split("=");
        if(arg.length <= 1) continue; 
        if(arg[0] == sArgName) 
            retval = arg[1];
    }
    return retval;
} 
